#ifndef TABLE_H
#define TABLE_H

#include <QWidget>
#include "ui_table.h"
#include "mywidget.h"

class table : public QWidget
{
	Q_OBJECT

public:
	table(QWidget *parent = 0);
	~table();

	void tableInitial();
	void factorCalculate(double namda,int pos);
	void setTableItem(double pos);
	void showItem();

private:
	double c0, c1, c2;
	double x_peak_pos;

public slots:
	void slotItemEntered(QTableWidgetItem *item);

private:
	Ui::table ui;
	
};

#endif // TABLE_H
